package com.yao.grpcdemo.grpc;

import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 此注解实现GRpcServer的注入和启动
 *
 * @author yys1892
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import({GRpcConfiguration.class, GRpcServerBuilderRegister.class})
public @interface GRpc {
    int port() default 10086;
}
